DefaultLocalServiceWrapper

Constructors

Link copied to clipboard
constructor(service: BluetoothGattService)
constructor(uuid: UUID, type: Service.Type)

Properties

Link copied to clipboard
open override val identity: AttributeIdentity

Identity used to correlate this service with incoming GATT callbacks.

Link copied to clipboard
open override val uuid: UUID

The UUID of the service

Functions

Link copied to clipboard
open override fun addCharacteristic(characteristic: LocalCharacteristicWrapper)

Adds a LocalCharacteristicWrapper to the service

Link copied to clipboard
open override fun addIncludedService(service: LocalServiceWrapper)

Adds an included LocalServiceWrapper to the service

Link copied to clipboard
open override fun addTo(gattServer: BluetoothGattServer): Boolean

Adds the service to a BluetoothGattServer

Link copied to clipboard
open override fun addToParent(parent: BluetoothGattService)

Adds the service to a parent BluetoothGattService as an included service

Link copied to clipboard
open override fun removeFrom(gattServer: BluetoothGattServer)

Removes the service from a BluetoothGattServer